package com.scs.application.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import lombok.Data;

/**
 * <p>
 * 编号规则
 * </p>
 */
@Data
@EntityClassAnnotation(remark = "编号规则当前编号表")
@TableName("sys_serial_owner")
public class SerialOwner extends DataEntity {

    @EntityFieldAnnotation(
            text = "规则编码",
            length = "32",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String ruleId;

    @EntityFieldAnnotation(
            text = "所属对象",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String target;


    @EntityFieldAnnotation(
            text = "当前编号",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String currentCode;

}
